﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CruzDelSur.Dominio.Tramo>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Dar de baja Tramo
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<% Html.RenderPartial("Servicios/MenuSecundarioServicios", new { Action = "ListarTramos"});%>
<ul class="tabs secondary">
 <li><a href="<%:Url.Action("ListarTramos", "Servicios") %>" class="">Listar</a></li>
 <li><a href="<%:Url.Action("CrearTramo", "Servicios") %>" class="active">Crear</a></li>
</ul>
<h2 style="font-size: medium">Dar de baja un Tramo</h2>    
<% Html.EnableClientValidation(); %>
 <% using (Html.BeginForm())
 {%>
 <%= Html.Message(ViewData["message"])%>
        <%: Html.ValidationSummary(true)%>
<div class="span-8">
    <div class="span-7" style="font-family: Arial,Helvetica,sans-serif; font-size: small;" dir="ltr">
     <p>
    <%= Html.Etiqueta("Codigo")%>  <%: Html.TextBoxFor(model => model.Codigo, new {@readonly = true})%> <br />
    <%= Html.ValidationMessageFor(model => model.Codigo)%> 
    <%= Html.Etiqueta("Descripción")%>  <%: Html.TextBoxFor(model => model.Descripcion, new { @readonly = true })%> <br />
     <%= Html.Etiqueta("Estado")%> <%=Html.NombreEstado(Model.Estado)%> <br />
     <%= Html.Etiqueta("Fecha de baja")%> <%: Html.TextBoxFor(model => model.FechaBaja, new { @class="short-date", @size=10})%> <br />
        <button id="profile-icon" type="button" onclick="profile_info()" title="Datos del usuario"><img src="../../Content/i/profile-icon.gif" alt="" /></button>
     </p>
    </div>
 </div>
   
   <div class="span-24" id="toolbar">
    <input type="submit" value="Dar de Baja" /> <input type="button" value="Cancelar" onclick="location='<%: Url.Action("Convenios", "ServiciosEspeciales") %>'" />
   </div>
<%} %>
<script type="text/javascript">
    $(function () {
        $('.short-date').datepicker({ dateFormat: '<%:Html.formatoFecha() %>' });
    });
</script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentMenuSecundario" runat="server">
<% Html.RenderPartial("Servicios/MenuPrincipal"); %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ModuleTitleContent" runat="server">
Servicios especiales / Convenio
</asp:Content>